<html>
<head><meta charset="utf-8"><title>Call expression semantic clarification · t-lang · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/index.html">t-lang</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html">Call expression semantic clarification</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="185432977"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Call%20expression%20semantic%20clarification/near/185432977" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html#185432977">(Jan 12 2020 at 12:42)</a>:</h4>
<p>Hello, in <a href="https://doc.rust-lang.org/nightly/reference/expressions/call-expr.html" target="_blank" title="https://doc.rust-lang.org/nightly/reference/expressions/call-expr.html">https://doc.rust-lang.org/nightly/reference/expressions/call-expr.html</a> there is this description:</p>



<a name="185432980"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Call%20expression%20semantic%20clarification/near/185432980" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html#185432980">(Jan 12 2020 at 12:42)</a>:</h4>
<p>(for <code>f(...)</code>)  An automatic borrow will be taken if needed. Rust will also automatically dereference <code>f</code> as required.</p>



<a name="185432987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Call%20expression%20semantic%20clarification/near/185432987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html#185432987">(Jan 12 2020 at 12:43)</a>:</h4>
<p>this brings up the question of priority of automatic borrowing and automatic dereference.</p>



<a name="185433099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Call%20expression%20semantic%20clarification/near/185433099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html#185433099">(Jan 12 2020 at 12:45)</a>:</h4>
<p>I wonder if this has been decided before? <span class="user-mention" data-user-id="126931">@centril</span></p>



<a name="185433146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/213817-t-lang/topic/Call%20expression%20semantic%20clarification/near/185433146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Charles Lew <a href="https://rust-lang.github.io/zulip_archive/stream/213817-t-lang/topic/Call.20expression.20semantic.20clarification.html#185433146">(Jan 12 2020 at 12:46)</a>:</h4>
<p>There is a bug that is related: <a href="https://github.com/rust-lang/rust/issues/42736" target="_blank" title="https://github.com/rust-lang/rust/issues/42736">https://github.com/rust-lang/rust/issues/42736</a> but i guess it's more important to understand what's desired here and update the reference accordingly first.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>